import request from '@/utils/request'

// 查询酒店历史价格列表
export function listHistory(query) {
  return request({
    url: '/system/history/list',
    method: 'get',
    params: query
  })
}

// 查询酒店历史价格详细
export function getHistory(priceHistoryId) {
  return request({
    url: '/system/history/' + priceHistoryId,
    method: 'get'
  })
}

// 新增酒店历史价格
export function addHistory(data) {
  return request({
    url: '/system/history',
    method: 'post',
    data: data
  })
}

// 修改酒店历史价格
export function updateHistory(data) {
  return request({
    url: '/system/history',
    method: 'put',
    data: data
  })
}

// 删除酒店历史价格
export function delHistory(priceHistoryId) {
  return request({
    url: '/system/history/' + priceHistoryId,
    method: 'delete'
  })
}
